﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Configuration/Configuration.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="System.Linq" %>
<%@ Import Namespace="LOGISTCBUS.Entities" %>
<%@ Import Namespace="LOGISTCBUS.DAO" %>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript" src="<%= Url.Content("~/Scripts/App/configurationEdit.js") %>"></script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <strong>CONFIGURAÇÃO DO SITE</strong>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
        var c = this.ViewData["configuration"] != null ? (LOGISTCBUS.Entities.Configuration)this.ViewData["configuration"] : new LOGISTCBUS.Entities.Configuration();
    %>
    <div class="box">
        <div class="tabs">
            <ul>
                <li class="titleBox" style="padding: 3px 0 6px 10px;">Preencha os campos abaixo:</li>
            </ul>
            <div style="padding: 20px;" align="center">
                <div class="box" style="width: 500px;">
                    <div class="tabs">
                        <div style="padding: 10px;">
                            <input type="hidden" id="hdfIdConfiguration" value="<%= c.Id %>" />
                            <table border="0" align="center" cellpadding="0" cellspacing="5" class="texto10azulclaro">
                                <tr>
                                    <td colspan="3" align="center">
                                        <p style='color: red; font-weight: bold;' id="lblMessage">
                                            <%= ViewData["error"] %>
                                        </p>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="23" align="right">
                                        E-mail:
                                    </td>
                                    <td>
                                        <input type="text" name="txtEmail" id="txtEmail" class="fForm required" maxlength="100"
                                            style="width: 200px;" tabindex="1" value="<%= c.Email %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="23" align="right">
                                        Senha:
                                    </td>
                                    <td>
                                        <input type="password" name="txtPassword" id="txtPassword" class="fForm" maxlength="50"
                                            style="width: 200px;" tabindex="2" value="<%= c.Password %>" />
                                        <input type="hidden" id="hdfPassword" value="<%= c.Password %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="23" align="right">
                                        Host:
                                    </td>
                                    <td>
                                        <input type="text" name="txtHost" id="txtHost" class="fForm required" maxlength="100"
                                            style="width: 200px;" tabindex="3" value="<%= c.Host %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="23" align="right">
                                        Porta:
                                    </td>
                                    <td>
                                        <input type="text" name="txtPort" id="txtPort" class="fForm required" maxlength="10"
                                            style="width: 200px;" tabindex="4" value="<%= c.Port > 0 ? c.Port.ToString() : string.Empty %>" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <div style="padding-top: 10px;">
                    <input name="btnSave" id="btnSave" type="button" value="Inserir" class="ui-button ui-state-default ui-corner-all botaoS"
                        tabindex="5" />
                </div>
            </div>
        </div>
    </div>
    <div align="center" class="texto10azulclaro" style="padding-top: 15px;">
        © 2012 - Todos os direitos reservados.
    </div>
</asp:Content>
